package NumberTwo;

public class Circle implements ShapePara{
    static final double PI=3.14;
    public double radius;  //半径


    public Circle() {
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public int getArea() {
        return (int)(PI * radius*radius);
    }

    @Override
    public int getCircumference() {
        return (int)(PI*2*radius);
    }
}
